package com.jp.reflection;

import java.lang.reflect.Constructor;

public class GetConstructor {
    public static void main(String[] args) {
        Student student = new Student();
        // 获取该类的公共构造函数
        Constructor<?>[] constructors = student.getClass().getConstructors();
        for (Constructor<?> constructor : constructors) {
            System.out.println(constructor.getName());
        }
    }
}
